import { axiosInstance } from '/@/utils/axios-utils'

const baseURL = (window as any).__env__.VITE_API_URL;

interface ResponseData<T = any> {
  code: string
  message: string
  result: T
}

export function getorderDetailDataAPI(data: any) {
  return axiosInstance<ResponseData>({
    url: baseURL + '/api/OrderDetaillssuance/GetOrderDetailPageList',
    method: 'POST',
    data
  })
}

// 执行订单
export function executeOrderPost(data: any) {
  return axiosInstance<ResponseData>({
    url: baseURL + '/api/OrderInfo/ExecuteOrder',
    method: 'POST',
    data
  })
}


// 执行订单
export function pauseOrderPost(data: any) {
  return axiosInstance<ResponseData>({
    url: baseURL + '/api/OrderInfo/PauseOrder',
    method: 'POST',
    data
  })
}